package com.neusoft.hifly.commons.id;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "id.snowflake")
public class IdWorkerProperties {

	private long workerId;// 当前机器id

	private long datacenterId;// 序列号

	public long getWorkerId() {
		return workerId;
	}

	public void setWorkerId(final long workerId) {
		this.workerId = workerId;
	}

	public long getDatacenterId() {
		return datacenterId;
	}

	public void setDatacenterId(final long datacenterId) {
		this.datacenterId = datacenterId;
	}
}
